.class public Lrexsee/fileSelector/RexseeFileSelector;
.super Ljava/lang/Object;
.source "RexseeFileSelector.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/fileSelector/RexseeFileSelector$FileSelector;
    }
.end annotation


# static fields
.field public static final EVENT_ONFILESELECTED:Ljava/lang/String; = "onFileSelected"

.field private static final INTERFACE_NAME:Ljava/lang/String; = "FileSelector"

.field public static final imageExtensions:[Ljava/lang/String;


# instance fields
.field private final ITEM_STYLE:Ljava/lang/String;

.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private mCrossFolder:Z

.field public mCurrentPath:Ljava/lang/String;

.field private mExtensions:[Ljava/lang/String;

.field public mFileIcon:Ljava/lang/String;

.field public mFolderIcon:Ljava/lang/String;

.field public mIcons:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public mMultiple:Z

.field public final mSelectedStyle:Lrexsee/core/style/StyleSheet;

.field public final mSelection:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field public mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

.field public final mUnselectedStyle:Lrexsee/core/style/StyleSheet;

.field private syncTag:Z


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 49
    const/4 v0, 0x4

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "jpg"

    aput-object v2, v0, v1

    const/4 v1, 0x1

    const-string v2, "jpeg"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "png"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "gif"

    aput-object v2, v0, v1

    sput-object v0, Lrexsee/fileSelector/RexseeFileSelector;->imageExtensions:[Ljava/lang/String;

    .line 33
    return-void
.end method

.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 5
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    const/4 v3, 0x0

    const/4 v1, 0x0

    const-string v4, ""

    const-string v2, "icon-width:40;icon-height:40;text-align:left;background-color:#000000;color:white;label-width:fillparent;label-height:wrapcontent;label-weight:1;label-padding:10 10 10 10;white-space:normal;font-size:20;"

    .line 73
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 50
    const-string v0, "icon-width:40;icon-height:40;text-align:left;background-color:#000000;color:white;label-width:fillparent;label-height:wrapcontent;label-weight:1;label-padding:10 10 10 10;white-space:normal;font-size:20;"

    iput-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector;->ITEM_STYLE:Ljava/lang/String;

    .line 55
    iput-boolean v3, p0, Lrexsee/fileSelector/RexseeFileSelector;->syncTag:Z

    .line 57
    iput-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mExtensions:[Ljava/lang/String;

    .line 58
    iput-boolean v3, p0, Lrexsee/fileSelector/RexseeFileSelector;->mCrossFolder:Z

    .line 60
    const-string v0, ""

    iput-object v4, p0, Lrexsee/fileSelector/RexseeFileSelector;->mFileIcon:Ljava/lang/String;

    .line 61
    const-string v0, ""

    iput-object v4, p0, Lrexsee/fileSelector/RexseeFileSelector;->mFolderIcon:Ljava/lang/String;

    .line 62
    iput-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mIcons:Ljava/util/HashMap;

    .line 63
    const/4 v0, 0x1

    iput-boolean v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mMultiple:Z

    .line 64
    iput-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mCurrentPath:Ljava/lang/String;

    .line 69
    iput-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    .line 70
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelection:Ljava/util/ArrayList;

    .line 74
    iput-object p1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    .line 75
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mContext:Landroid/content/Context;

    .line 76
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v1, "onFileSelected"

    invoke-virtual {v0, v1}, Lrexsee/core/browser/clazz/EventList;->add(Ljava/lang/String;)V

    .line 77
    new-instance v0, Lrexsee/core/style/StyleSheet;

    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    const-string v1, "icon-width:40;icon-height:40;text-align:left;background-color:#000000;color:white;label-width:fillparent;label-height:wrapcontent;label-weight:1;label-padding:10 10 10 10;white-space:normal;font-size:20;"

    invoke-virtual {v0, v2}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v0

    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelectedStyle:Lrexsee/core/style/StyleSheet;

    .line 78
    new-instance v0, Lrexsee/core/style/StyleSheet;

    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    const-string v1, "icon-width:40;icon-height:40;text-align:left;background-color:#000000;color:white;label-width:fillparent;label-height:wrapcontent;label-weight:1;label-padding:10 10 10 10;white-space:normal;font-size:20;"

    invoke-virtual {v0, v2}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    move-result-object v0

    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mUnselectedStyle:Lrexsee/core/style/StyleSheet;

    .line 79
    return-void
.end method

.method static synthetic access$0(Lrexsee/fileSelector/RexseeFileSelector;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 54
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/fileSelector/RexseeFileSelector;Z)V
    .locals 0

    .prologue
    .line 55
    iput-boolean p1, p0, Lrexsee/fileSelector/RexseeFileSelector;->syncTag:Z

    return-void
.end method

.method private isWithExtension([Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5
    .param p1, "exts"    # [Ljava/lang/String;
    .param p2, "filename"    # Ljava/lang/String;

    .prologue
    const/4 v4, 0x1

    .line 88
    if-nez p1, :cond_0

    move v2, v4

    .line 94
    :goto_0
    return v2

    .line 89
    :cond_0
    invoke-virtual {p2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object p2

    .line 90
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    array-length v2, p1

    if-lt v1, v2, :cond_1

    .line 94
    const/4 v2, 0x0

    goto :goto_0

    .line 91
    :cond_1
    aget-object v2, p1, v1

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    .line 92
    .local v0, "ext":Ljava/lang/String;
    const-string v2, ""

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "."

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    move v2, v4

    goto :goto_0

    .line 90
    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method


# virtual methods
.method public dismiss()V
    .locals 1

    .prologue
    .line 131
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    if-eqz v0, :cond_0

    .line 132
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    invoke-virtual {v0}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->dismiss()V

    .line 133
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    .line 135
    :cond_0
    return-void
.end method

.method public getExtensions()Ljava/lang/String;
    .locals 1

    .prologue
    .line 194
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mExtensions:[Ljava/lang/String;

    invoke-static {v0}, Lrexsee/core/utilities/Json;->toJson([Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getFileIcons()Ljava/lang/String;
    .locals 4

    .prologue
    const-string v3, "\""

    .line 202
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "\"folder\":\""

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector;->mFolderIcon:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 203
    .local v0, "rtn":Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"file\":\""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector;->mFileIcon:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\""

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 204
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ",\"extension\":"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lrexsee/fileSelector/RexseeFileSelector;->mIcons:Ljava/util/HashMap;

    invoke-static {v2}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/HashMap;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 205
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "{"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "}"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 42
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 38
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "FileSelector"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 46
    new-instance v0, Lrexsee/fileSelector/RexseeFileSelector;

    invoke-direct {v0, p1}, Lrexsee/fileSelector/RexseeFileSelector;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public getSelection()Ljava/lang/String;
    .locals 1

    .prologue
    .line 174
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelection:Ljava/util/ArrayList;

    invoke-static {v0}, Lrexsee/core/utilities/Json;->toJson(Ljava/util/List;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getStyle(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .param p1, "name"    # Ljava/lang/String;

    .prologue
    .line 142
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    if-eqz v0, :cond_0

    .line 143
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    invoke-virtual {v0, p1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->getStyle(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 144
    :goto_0
    return-object v0

    :cond_0
    const-string v0, ""

    goto :goto_0
.end method

.method public isCrossFolderSelection()Z
    .locals 1

    .prologue
    .line 187
    iget-boolean v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mCrossFolder:Z

    return v0
.end method

.method public isImage(Ljava/lang/String;)Z
    .locals 1
    .param p1, "filename"    # Ljava/lang/String;

    .prologue
    .line 82
    sget-object v0, Lrexsee/fileSelector/RexseeFileSelector;->imageExtensions:[Ljava/lang/String;

    invoke-direct {p0, v0, p1}, Lrexsee/fileSelector/RexseeFileSelector;->isWithExtension([Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public isMultipleSelection()Z
    .locals 1

    .prologue
    .line 181
    iget-boolean v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mMultiple:Z

    return v0
.end method

.method public isStarted()Z
    .locals 1

    .prologue
    .line 147
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    invoke-virtual {v0}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isValidFile(Ljava/lang/String;)Z
    .locals 1
    .param p1, "filename"    # Ljava/lang/String;

    .prologue
    .line 85
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mExtensions:[Ljava/lang/String;

    invoke-direct {p0, v0, p1}, Lrexsee/fileSelector/RexseeFileSelector;->isWithExtension([Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method public load(Ljava/lang/String;)V
    .locals 3
    .param p1, "spath"    # Ljava/lang/String;

    .prologue
    .line 151
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "file://"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    move-object v0, v1

    .line 152
    .local v0, "path":Ljava/lang/String;
    :goto_0
    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    if-eqz v1, :cond_2

    .line 153
    iget-boolean v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mCrossFolder:Z

    if-nez v1, :cond_1

    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelection:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 154
    :cond_1
    iget-object v1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mContext:Landroid/content/Context;

    check-cast v1, Landroid/app/Activity;

    new-instance v2, Lrexsee/fileSelector/RexseeFileSelector$2;

    invoke-direct {v2, p0, v0}, Lrexsee/fileSelector/RexseeFileSelector$2;-><init>(Lrexsee/fileSelector/RexseeFileSelector;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 172
    :cond_2
    return-void

    .end local v0    # "path":Ljava/lang/String;
    :cond_3
    move-object v0, p1

    .line 151
    goto :goto_0
.end method

.method public setCrossFolderSelection(Z)V
    .locals 0
    .param p1, "crossFolder"    # Z

    .prologue
    .line 184
    iput-boolean p1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mCrossFolder:Z

    .line 185
    return-void
.end method

.method public setExtensions(Ljava/lang/String;)V
    .locals 2
    .param p1, "extensions"    # Ljava/lang/String;

    .prologue
    .line 191
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mExtensions:[Ljava/lang/String;

    .line 192
    return-void

    .line 191
    :cond_1
    invoke-virtual {p1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public setFileIcons(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .param p1, "fileIcon"    # Ljava/lang/String;
    .param p2, "folderIcon"    # Ljava/lang/String;
    .param p3, "extensionIcons"    # Ljava/lang/String;

    .prologue
    .line 197
    iput-object p1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mFileIcon:Ljava/lang/String;

    .line 198
    iput-object p2, p0, Lrexsee/fileSelector/RexseeFileSelector;->mFolderIcon:Ljava/lang/String;

    .line 199
    invoke-static {p3}, Lrexsee/core/utilities/Utilities;->string2map(Ljava/lang/String;)Ljava/util/HashMap;

    move-result-object v0

    iput-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mIcons:Ljava/util/HashMap;

    .line 200
    return-void
.end method

.method public setItemStyle(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .param p1, "unselectedStyle"    # Ljava/lang/String;
    .param p2, "selectedStyle"    # Ljava/lang/String;

    .prologue
    .line 209
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mUnselectedStyle:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p1}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 210
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelectedStyle:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p2}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 211
    return-void
.end method

.method public setMulptipleSelection(Z)V
    .locals 0
    .param p1, "multiple"    # Z

    .prologue
    .line 178
    iput-boolean p1, p0, Lrexsee/fileSelector/RexseeFileSelector;->mMultiple:Z

    .line 179
    return-void
.end method

.method public setStyle(Ljava/lang/String;)V
    .locals 1
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 137
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    if-eqz v0, :cond_0

    .line 138
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelector:Lrexsee/fileSelector/RexseeFileSelector$FileSelector;

    invoke-virtual {v0, p1}, Lrexsee/fileSelector/RexseeFileSelector$FileSelector;->setStyle(Ljava/lang/String;)V

    .line 140
    :cond_0
    return-void
.end method

.method public start()V
    .locals 1

    .prologue
    .line 99
    const-string v0, ""

    invoke-virtual {p0, v0}, Lrexsee/fileSelector/RexseeFileSelector;->start(Ljava/lang/String;)V

    .line 100
    return-void
.end method

.method public start(Ljava/lang/String;)V
    .locals 1
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 102
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mCurrentPath:Ljava/lang/String;

    invoke-virtual {p0, v0, p1}, Lrexsee/fileSelector/RexseeFileSelector;->start(Ljava/lang/String;Ljava/lang/String;)V

    .line 103
    return-void
.end method

.method public start(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .param p1, "path"    # Ljava/lang/String;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    .line 105
    invoke-virtual {p0}, Lrexsee/fileSelector/RexseeFileSelector;->dismiss()V

    .line 106
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mSelection:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 107
    const/4 v0, 0x0

    iput-boolean v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->syncTag:Z

    .line 108
    iget-object v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/fileSelector/RexseeFileSelector$1;

    invoke-direct {v1, p0, p2, p1}, Lrexsee/fileSelector/RexseeFileSelector$1;-><init>(Lrexsee/fileSelector/RexseeFileSelector;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 121
    :goto_0
    iget-boolean v0, p0, Lrexsee/fileSelector/RexseeFileSelector;->syncTag:Z

    if-eqz v0, :cond_0

    .line 128
    return-void

    .line 123
    :cond_0
    const-wide/16 v0, 0x64

    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 124
    :catch_0
    move-exception v0

    goto :goto_0
.end method
